<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
    <!-- Bootstrap core CSS -->
    <link href="/public/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Optional Bootstrap Theme -->
    <link href="data:text/css;charset=utf-8," data-href="/public/dist/css/bootstrap-theme.min.css" rel="stylesheet" id="bs-theme-stylesheet">
    <title>Go抽奖系统前端页面</title>
    <style type="text/css">
        footer {
            border-top: 5px solid seagreen;
            border-bottom: 1px solid #333333;
            /*background-color: #00AA88;*/
            background-color: hsl(209, 51%, 92%);
        }
        .table {
            height: 503px;
        }

        .navbar-brand:hover {
            background-color: #00ccff;
            font-size: 20px;
        }

        .navbar-nav li:hover {
            background-color: #00ccff;
            font-size: 20px;
        }

        body {
            font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
            font-size: 14px;
            line-height: 1.42857143;
            color: #333;
            background-color: #FFE;
        }
        .bt {
            /*background-color: #00CCFF;*/
            background-image: url("../public/static/img/cbg.png");
            height: 400px;
        }

        .bt a {
            color: #337ab7;
            text-decoration: none;
            height: 200px;
            width: 300px;
            line-height: 182px;
            font-size: 45px;
            margin-top: 100px;
            background-color: orange;
            border-top-left-radius: 50px;
            border-top-right-radius: 50px;
            border-bottom-left-radius: 50px;
            border-bottom-right-radius: 50px;
            box-shadow: 0px 0px 23px 2px #22c1b3;
        }

        .bt .con {
            /*background-color: red;*/
            height: 300px;
            width: 910px;
            margin: 0 auto;
        }

        .as {
            color: red;
            height: 10px;
            width: 100%;
        }

        .p {
            width: 400px;
            margin: 0 auto;
            height: 27px;
            line-height: 41px;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/public/index.html">Go抽奖系统</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul id="nav_login" class="nav navbar-nav">
                <li><a href="/login">身份认证</a></li>
            </ul>
            <ul id="nav_logout" class="nav navbar-nav">
                <li><a href="/myprize">我的中奖纪录</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">更多 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>

<div class="as"><div class="p">注意：尊敬的用户您好，欢迎参与活动抽奖，请遵守相关规定！</div></div>
<br/>
<div class="bt">
    <div class="con">
<a href="/public/lucky.html" class="btn btn-default">开始抽奖</a>
<a href="/gifts" class="btn btn-default">奖品列表</a>
<a href="/newprize" class="btn btn-default">近期中奖</a>
    </div>
</div>
<div>
<hr />
    <footer style="text-align: center;">
        <center>
            <table  width="640" border="0">
                <tr class="tt">
                    <td align="center" width="80"><a href="#"><font size="1"><b>关于我们&nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                    <td align="center" width="80"><a href="#"><font size="1"><b>About&nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                    <td align="center" width="80"><a href="#"><font size="1"><b>服务协议&nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                    <td align="center" width="80"><a href="#"><font size="1"><b>隐私政策 &nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                    <td align="center" width="80"><a href="#"><font size="1"><b>开放平台&nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                    <td align="center" width="80"><a href="#"><font size="1"><b>商务洽谈&nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                    <td align="center" width="80"><a href="#"><font size="1"><b>招聘&nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                    <td align="center" width="80"><a href="#"><font size="1"><b>客服中心&nbsp;&nbsp;&nbsp;&nbsp;</b></font></a></td>
                </tr>
            </table>
            <p><font size="1"><b>&copy;2022 - Go抽奖系统：&copy;:版权所有，计科三班，黄栋林</b></font></p>
            <address>E-mail:  huangdonglin@qq.com</address>
        </center>
    </footer>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/public/dist/jquery/1.12.4/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="/public/dist/js/vendor/jquery.min.js"><\/script>')</script>
<script src="/public/dist/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script src="/public/dist/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>
    var uid = 0;
    var username = "";
    var login = $.cookie('lottery_loginuser')
    if (login && login.length > 1) {
        var datas = login.split("&")
        for(var i = 0; i < datas.length; i++) {
            var data = datas[i].split("=");
            if (data[0] == "uid") {
                uid = data[1] - 0;
            } else if (data[0] == "username") {
                username = data[1];
            }
        }
        console.log(uid + " " + username)
    }

        $("#nav_login").hide();

</script>
</body>
</html>

